package model;

import java.sql.Timestamp;

/**
 * VNovel entity. @author MyEclipse Persistence Tools
 */

public class VNovel implements java.io.Serializable {

	private Integer novelid;
	private String novelname;
	private String abstrac;
	private String typename;
	private String nickname;
	private Integer novelstatus;
	private Timestamp createtime;
	private Integer scancount;
	private Integer reviewcount;
	private Boolean auditstatus;
	private Boolean isdelete;
	private String photourl;
	private String userid;
	private Integer parentid;
	private Integer ticketcont;
	private Integer id;

	// Constructors

	/** default constructor */
	public VNovel() {
	}

	/** minimal constructor */
	public VNovel(Integer novelid, String novelname, String abstrac,
			String typename, String nickname, String photourl, String userid,
			Integer id) {
		this.novelid = novelid;
		this.novelname = novelname;
		this.abstrac = abstrac;
		this.typename = typename;
		this.nickname = nickname;
		this.photourl = photourl;
		this.userid = userid;
		this.id = id;
	}

	/** full constructor */
	public VNovel(Integer novelid, String novelname, String abstrac,
			String typename, String nickname, Integer novelstatus,
			Timestamp createtime, Integer scancount, Integer reviewcount,
			Boolean auditstatus, Boolean isdelete, String photourl,
			String userid, Integer parentid, Integer ticketcont, Integer id) {
		this.novelid = novelid;
		this.novelname = novelname;
		this.abstrac = abstrac;
		this.typename = typename;
		this.nickname = nickname;
		this.novelstatus = novelstatus;
		this.createtime = createtime;
		this.scancount = scancount;
		this.reviewcount = reviewcount;
		this.auditstatus = auditstatus;
		this.isdelete = isdelete;
		this.photourl = photourl;
		this.userid = userid;
		this.parentid = parentid;
		this.ticketcont = ticketcont;
		this.id = id;
	}

	// Property accessors

	public Integer getNovelid() {
		return this.novelid;
	}

	public void setNovelid(Integer novelid) {
		this.novelid = novelid;
	}

	public String getNovelname() {
		return this.novelname;
	}

	public void setNovelname(String novelname) {
		this.novelname = novelname;
	}

	public String getAbstrac() {
		return this.abstrac;
	}

	public void setAbstrac(String abstrac) {
		this.abstrac = abstrac;
	}

	public String getTypename() {
		return this.typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getNovelstatus() {
		return this.novelstatus;
	}

	public void setNovelstatus(Integer novelstatus) {
		this.novelstatus = novelstatus;
	}

	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	public Integer getScancount() {
		return this.scancount;
	}

	public void setScancount(Integer scancount) {
		this.scancount = scancount;
	}

	public Integer getReviewcount() {
		return this.reviewcount;
	}

	public void setReviewcount(Integer reviewcount) {
		this.reviewcount = reviewcount;
	}

	public Boolean getAuditstatus() {
		return this.auditstatus;
	}

	public void setAuditstatus(Boolean auditstatus) {
		this.auditstatus = auditstatus;
	}

	public Boolean getIsdelete() {
		return this.isdelete;
	}

	public void setIsdelete(Boolean isdelete) {
		this.isdelete = isdelete;
	}

	public String getPhotourl() {
		return this.photourl;
	}

	public void setPhotourl(String photourl) {
		this.photourl = photourl;
	}

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public Integer getTicketcont() {
		return this.ticketcont;
	}

	public void setTicketcont(Integer ticketcont) {
		this.ticketcont = ticketcont;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VNovel))
			return false;
		VNovel castOther = (VNovel) other;

		return ((this.getNovelid() == castOther.getNovelid()) || (this
				.getNovelid() != null && castOther.getNovelid() != null && this
				.getNovelid().equals(castOther.getNovelid())))
				&& ((this.getNovelname() == castOther.getNovelname()) || (this
						.getNovelname() != null
						&& castOther.getNovelname() != null && this
						.getNovelname().equals(castOther.getNovelname())))
				&& ((this.getAbstrac() == castOther.getAbstrac()) || (this
						.getAbstrac() != null && castOther.getAbstrac() != null && this
						.getAbstrac().equals(castOther.getAbstrac())))
				&& ((this.getTypename() == castOther.getTypename()) || (this
						.getTypename() != null
						&& castOther.getTypename() != null && this
						.getTypename().equals(castOther.getTypename())))
				&& ((this.getNickname() == castOther.getNickname()) || (this
						.getNickname() != null
						&& castOther.getNickname() != null && this
						.getNickname().equals(castOther.getNickname())))
				&& ((this.getNovelstatus() == castOther.getNovelstatus()) || (this
						.getNovelstatus() != null
						&& castOther.getNovelstatus() != null && this
						.getNovelstatus().equals(castOther.getNovelstatus())))
				&& ((this.getCreatetime() == castOther.getCreatetime()) || (this
						.getCreatetime() != null
						&& castOther.getCreatetime() != null && this
						.getCreatetime().equals(castOther.getCreatetime())))
				&& ((this.getScancount() == castOther.getScancount()) || (this
						.getScancount() != null
						&& castOther.getScancount() != null && this
						.getScancount().equals(castOther.getScancount())))
				&& ((this.getReviewcount() == castOther.getReviewcount()) || (this
						.getReviewcount() != null
						&& castOther.getReviewcount() != null && this
						.getReviewcount().equals(castOther.getReviewcount())))
				&& ((this.getAuditstatus() == castOther.getAuditstatus()) || (this
						.getAuditstatus() != null
						&& castOther.getAuditstatus() != null && this
						.getAuditstatus().equals(castOther.getAuditstatus())))
				&& ((this.getIsdelete() == castOther.getIsdelete()) || (this
						.getIsdelete() != null
						&& castOther.getIsdelete() != null && this
						.getIsdelete().equals(castOther.getIsdelete())))
				&& ((this.getPhotourl() == castOther.getPhotourl()) || (this
						.getPhotourl() != null
						&& castOther.getPhotourl() != null && this
						.getPhotourl().equals(castOther.getPhotourl())))
				&& ((this.getUserid() == castOther.getUserid()) || (this
						.getUserid() != null && castOther.getUserid() != null && this
						.getUserid().equals(castOther.getUserid())))
				&& ((this.getParentid() == castOther.getParentid()) || (this
						.getParentid() != null
						&& castOther.getParentid() != null && this
						.getParentid().equals(castOther.getParentid())))
				&& ((this.getTicketcont() == castOther.getTicketcont()) || (this
						.getTicketcont() != null
						&& castOther.getTicketcont() != null && this
						.getTicketcont().equals(castOther.getTicketcont())))
				&& ((this.getId() == castOther.getId()) || (this.getId() != null
						&& castOther.getId() != null && this.getId().equals(
						castOther.getId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getNovelid() == null ? 0 : this.getNovelid().hashCode());
		result = 37 * result
				+ (getNovelname() == null ? 0 : this.getNovelname().hashCode());
		result = 37 * result
				+ (getAbstrac() == null ? 0 : this.getAbstrac().hashCode());
		result = 37 * result
				+ (getTypename() == null ? 0 : this.getTypename().hashCode());
		result = 37 * result
				+ (getNickname() == null ? 0 : this.getNickname().hashCode());
		result = 37
				* result
				+ (getNovelstatus() == null ? 0 : this.getNovelstatus()
						.hashCode());
		result = 37
				* result
				+ (getCreatetime() == null ? 0 : this.getCreatetime()
						.hashCode());
		result = 37 * result
				+ (getScancount() == null ? 0 : this.getScancount().hashCode());
		result = 37
				* result
				+ (getReviewcount() == null ? 0 : this.getReviewcount()
						.hashCode());
		result = 37
				* result
				+ (getAuditstatus() == null ? 0 : this.getAuditstatus()
						.hashCode());
		result = 37 * result
				+ (getIsdelete() == null ? 0 : this.getIsdelete().hashCode());
		result = 37 * result
				+ (getPhotourl() == null ? 0 : this.getPhotourl().hashCode());
		result = 37 * result
				+ (getUserid() == null ? 0 : this.getUserid().hashCode());
		result = 37 * result
				+ (getParentid() == null ? 0 : this.getParentid().hashCode());
		result = 37
				* result
				+ (getTicketcont() == null ? 0 : this.getTicketcont()
						.hashCode());
		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		return result;
	}

}